package com.longshihan.carservice.service.log;

import com.github.pagehelper.PageInfo;
import com.longshihan.carservice.model.LogDomain;

public interface LogService {
    /**
     * 添加
     * @param action
     * @param data
     * @param ip
     */
    void addLog(String action, String reponceData,String requestData, String ip,String time);

    void addLog(String action, String data);

    /**
     * 删除日志
     * @param id
     * @return
     */
    void deleteLogById(Integer id);

    /**
     * 获取日志
     * @return
     */
    PageInfo<LogDomain> getLogs(int pageNum, int pageSize);
}
